package com.yl.principles.demo3.after;

/**
 * @Author 小羊
 * @Date 29/10/2024下午 4:07
 * @ClassName TestComputer
 * @Description 测试类
 */
public class TestComputer {
    public static void main(String[] args) {
        //创建电脑
        Computer computer = new Computer();
        computer.setHardDisk(new XiJieHardDisk());
        computer.setCpu(new IntelCpu());
        computer.setMemory(new KingstonMemory());

        computer.run();
    }
}
